import request from '../utils/request'

// 获取车辆分类页面的侧边栏的分页数据
export const getCategoryList = () => {
  return request({
    method: 'GET',
    url: "/api/category"
  })
}

// 获取哪一类的商品列表
export const getCategoryGoods = (id) => {
  return request({
    method: 'GET',
    url: `/api/category/${id}`
  })
}

// 获取商品详情
export const getGoodsDetail = (id) => {
  return request({
    method: 'GET',
    url: `/api/goodsDetail?id=${id}`,
  })
}